package com.xmall.auth.service.remote;

import com.xmall.define.base.Result;
import com.xmall.define.dto.login.MemberDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 微服务 - member：member
 */
@FeignClient(value = "xmall-member")
public interface MemberServiceFeign {

    /**
     * 用户权限信息
     */
    @GetMapping("/service/member/member/info/{userId}")
    Result<MemberDto> memberInfo(@PathVariable("userId") Long userId);

}
